cleaning the dead code