Clean unnecessary codes