correcting URL fucntions