added code for a parametirized url