fixes equals problem