remove some unneded bytecode