finish insert operation