Rewrite truncate