clear the old code + add in mixture ps match code