nest code

nest code adjustment