add two function in identify.cpp, write main.h