write data-type to option