change repository field from array to object