this method should get URL as parameter