fixed silly +1 errors