overrode == operator for use in find