improved stat rate calculation
fix exceptions except StackOverFlow