extracted function to map date to string and added new collection for tips