added output function (but converter is still missing)