allow setting comparison operator