modified abs.sh