added indexd for arrays in objects