changing duration
scripted update of code from master at 3a688aa changing duration