working on next() function, bug query when only city to fix