update with scala.concurrent.duration