passed the object as parameter to getOptions()