removed dead function