Last condition is not passing could anyone help me please