convert e function to echo function.