removed dead functions