changing the way we set output to variables