update register even if key already exists