added function getURL