fixed previous question condition