adding script for mass correction