repairs clockskew algorithm