move comparedUpdatedAt into utility