declare options as named type too