refactoring
refactor for display
better counting of races