mad performance improvement