add def in main.cpp