create method for indexing events for view use