adding hash-key check