update keys for instances