update code layout.