account for arrays