flatten stuff out