updated the method for the mixedMode