change to getOptions