adjusted memory usage for loop modeling
bug fix