accept array in set()