loop updated