update ex_mixed.R