ensure integer task length