implemented Hashkey Calculation