add function to transform truncated box