testing custom loop