add reverse in iterative