minor change

deal with empty input