adds mapping functionality