fixed up truncate