change list files helper : getFiles from folder
minor refactoring