refactor to use setTimeout on the on intiator instead of the graph