documentation for loops