shell script functions with arguments