eliminate some dead code