delete reduntant codes