edit main program