modified spinner condition