code layout part refined