off by one, debug