material: truncate funciton still not working;