finished main program