change ruby hash syntax