changed set_options to set_options_for