could use better docstring, also for eq and ne below