removed dead code