add check of date