updated code to compile of 7_0_6_patch1