adding entryremove function