dealt with empty parameters