updates with map optimization