adds persist-day function (date breaks it still)