update file pointers
update file pointers