the final index does nothing, so we can ignore it