removed double brackets on fmatrix