refine style with max.depth