removing some equalities with doubles