better shell script