added variable within function, now knowing not to just return the whole calculation. return a variable instead