use output instead of echo