removed unreferenced local variables that were overriding super variables and causing NullPointerExceptions.