removed the @url variable and construct_uri method