updated regular mSDA train function