complete the program structure