change output data to support any type of data.