roughly object-orientate insertion code, in preparation for allowing another processing method for inserting ordering/value pairs