better date checks