removed memory reallocation in loop