flatten design