fixing equality operator