added object loop that actually loops through objects