refactored hash syntax to new style