changed the bash script