update an entry