Yi - complete insert function, need to be refactored later