created parse kyot url function