refining, dead code purge