added clock setting throughout