changed dict key from datr str to date type