update to allow for nil activity end time