updates mapping