replace "echo -n" with "printf"