removed generateUrl method