remove calls to undefined methods