Incorrect variables assigned

I assigned the wrong name var for the function to perform.