adding reading subfolder function