dumb off by one error