made riddlerURL as a function