updated shell script