changed main program