Misassembly removal function added