use function map for options