finished core of echo