shell script functions with parameters