changed the if conditional.