remove redundant/dead code