working SAR loop