#5 add rootDir variable for files in subdirectories