changed equality transformation