adjust code layout