now building the url dynamically