updating vars for outputting content