refactor: set_options method