remove auto-boxing in loop
new version