Delete unnecessary codes