remove useless condition