added traces and matmul task creation