rewrite timeStd