renamed to update keys