updated mada.sh