added support for arrays to attribute