add duration to output