participation graphs
refactor zero-counting code