truncate should be public