implemented methods wrapAll() and wrapInner()