changed if inside of getOptions