scp_imp.cpp reformatted