removed useless comparison