added datecheck