only set if the key exists