make truncation example parameterizable