corrected getURI method