add truncate to interface