replaced echo with tee