fixes passing in hash