fixed the getUsedSectors method