updated truncation from a file