clocks A/C using DFS