add main program code