remove uesless code.