equality operator with inline