add array field and atributes