fixing naming of the final output variable