use printf to simplify output

show_environment_variables is modified