better hash assignment style