created indexfor pre work