added echo function
fixed echo function