trying to deal with my giz bash script