simplify clock generation