changed function name from fileNameList() to getFilenameList()