handle None duration