explicit use of SEEK_END instead of 2