merge several files into helper.cpp and helper.h