fixed missing dead code