delete not used file and fix not used function