removed reference to undefined variable url