added func.h, main calls func