packed v0.7 with fixed iterative method