generate level.