change global clock to not be global