fixed memory issues; full loop works *exclamation points*