delete redandunt code