modernizing hash syntax