switch from nsset to nsarray