added keyhashvalPair to return hash code based on key only
replaced keyvalpair with keyhashvalpair