fixed bad division syntax, division by 0 bug