truncate method