found an off-by-one, see if this works