remove unnecessary file.buffer