remove unwanted options.