fixed the major minor calculation