insert function cleared