last condition is not passing