moved scalar clock to total order