added clock controller