added comment, removed unused var