adding static to function in FileUtil