to add insertfunc into repo