setting up for echofunc