added $display statement to echo (test case for debugging printf)