changed loop-value to loop-location