clean up dead code