actually implement truncation