added dense output document