checks mode in getMajorMinor