date check added