revise shell script