delete invalid method