add class for truncation