modified shell script