fixing type of key define