fixed equality so that non numeric entities could be compared