remove redundant part of insert function for combine function