changed unneeded variable declaration and formatted