created map for arrays