remove duplicated pointer equality tests