fixed errors, bash script will work now