fixed linear behavior to correspond to index loop