use an external function to create the url