why the last condition isn't verifying