wrapped each stat computation in a begin end so I can investigate wierd shit happening and keep the flow