dealing with different integration lengths