Sn has been commented up through the matrix gen function