removed usage of $vars["url"]