replaced "echo -n" with printf for future formatting