insert function added, yet to do insertEntry function