converted arrays to objects