clearer code: rename adsCount to adIndex