Fixed so each() now loop through objects