modified check classes to correctly handle date comparison