"maj" variable corrected