tyding up params and values