ex 3 something wrong with if conditions