replaces two equals with threequals