better checking dates