you don't need the else, opt is already initalised.