adapted to url input