added a function urlFormat