remove useless comparison