modify code for small file.