modified FE to c++,single file FE done