change truncat method