use printf simplify echo commands