build url creation loop

Please approve.