unnecessary variable and weird comment