shell script define function with arguments