renamed url retrieval function to just url