remove the dead code