removal of mainstat