final commit comparing direct and iterative