object is a type (kinda reserved), use obj instead
dont use the leftover loop variable, use obj instead
remove duplicate comments