optimized a bit for xs layout