simplified output according to shellcheck suggestions