created wrapper around span_regions.py