deleting ++1 from error, problem only at <=