changed the way of boolean check