how to do this condition