use sortedmap for traits operators as well