changing parameters to output method