fixing hash syntax errors