draft to understand the logic of the object arrays