fix off by one comparison error.
remove error reporting.