added unfold all code feature