remove dead functions