brush up code layout