shell loop works bug free...?...maybe