simpler shell script