fix to save on large files