allocate the operation length amount plus one, I wrongly assumed it was always going to be smaller, but that is not the case.