update to bash script2