trying to set params as hash