remove invalid method.