one_level() function