updating margins on map, weight estimator on index