modifying the if conditions