remove unneeded variable
bug fix