fixing truncate