clock and flow