changed hash to variable