sets up params hash