set opt array method