changed the for loop so we don't iterate through object props