params to hash