handle empty params