implement ojobject insertion (output) operator with ties and pairs