remeved dead code