updating code layout