extract method for output data