remove unneeded variable, cleanup comment, fix formatting of a log message