adding support for arrays