finish the fmatrix