Update SA.cpp