add improvement when opening large files