updated files
added support for nested loops