added functionality to the make_hash method