fixed the problem; created new object each time in for loop