add an entry and modiry an entry