update sdscmp.cpp