adding params and updating path