update code layout