why my last condition not passing?Please help