small hash syntax refactor