This will remove the need for extra variable and adds an improvement to the computation time