added comment and removed an unused var