added truncate_data