added duration to output