should just be `1`, no need for `length - 1`