more adaptation for middle-style layout