statistics & division by zero fix