pull truncate out of the loop and move it after it; all tests pass