bottom-up residual structure