modify controller to incorperate params value