update echo function