automatic layout by depends