added the url check