added input echoing output