add an entry and modify an entry