fixed the dumb indexes stuff