new level intialization code