off-by-two(!!) error