added for loop for object