improved on date wrote regex