make url an instance variable