assigned variable to so the calculation inside the function