finally fixed adding an entry