preproc lib mat done