added date checker