assigning url earlier