t function on material type