implement indexing for lecture data