Update msp.cpp