change deprecated key to valid key