simpler bash script