wrong logic in equality