added a naming variable to the output