adding output to method