using pi.h in main