generalize the url