fix syntax error and now tests are failing for good reasons; check off-by-1 issues next