change algorithm to produce URL