matUtil cleanup