there is off-by-one bug