update gaps