I don't see `output` defined before this anywhere? Where's it come from?