fix again
refactor statsmain a bit