chain - insert func implementation