restored main to the old state