better bash script