should not use "object" as variable name
style fix - (worked, but used loop variable after the loop)