remove needless code