changed the private name topics to input and output.