missed int
removed unneeded variable assignments