use function map for options

Minor fix.