handle empty input