finalized the program