implemented mapping of spans via bottom up
- careful this is not tested so far