update loops