fileRED directory as parameter