remove redundant insert function