add options and call function