better naming for the method making the iostream