consider using better truncate logic as discussed