rename hash and avoid unnecessary hash ref