added two way of the function to add entry #108