add comments for custom loop