duration changed to readonly