remove redundant FilePath creation