update var names, remove unneeded parenthesis

Also added an identifier to the printf.