shell script function definition