equality works in operator()