fix method signature for Duration