changes sum CLI to not hang on empty input