added structure to main program