added echo function