modified Quash.cpp