switch to times rather than loops semantics, and adjust code accordingly