minor cleaning / style / coherence fix

- better not use "object" as var name
- better not reuse loop vars after loop (even if it works :)