removing echos and die conditions