changed get_hash