determine common mode