documented and implemented SubWraps()