add a entry, and modify two entries