more minor changes to truncate