modified muscle.sh