added linked lists - compiles but not sure if events persist outside of function they are declared in