allow nesting of for-loops