added a getter for the output