gets rid of extraneous echo