finish layout of critical sections