switching code layout