script change for Mw