add userid to the output