APSI: added second iteration