shell script function with parameters