fixed the bash script