what is wrong here... first two conditions are met. but the last 3 conditions are not