changed the conditional statement