set up params fn