removing flash and casting lines