still trying to fix bash script