gaia inverse algorithm implement(based iterator).