Update sa.cpp