created setOptions method