replace displayDuration by duration