update ruby hash syntax