fix dead code