duration length should be treated as integer