print one level per line