some error debugged