insert function developed and added.