updated for miniaod