add lock to updated map