url pulled out of method