implementation of map_parameter as callback function of the events