generate code for var init section