start to add support for arrays