new example for clock control function