removed S_Matrix class