problems with empty city variable resolved