Added spaces to make code more readable and slight change to a variable name