using date_of_visit instead of date