Modifed the initializing process