building hash