working on iterative_ec