get key properly