update pretty printing of commutative ops