add default value for empty parameters.