_smn.cpp modified