reorganize case layout