updated truncation. added clear