add type as option