map rule for root functions