delete invalid code