new fun: ensureLength, NOT DONE