the new file length could be equal to the old one