Brain: removing redundant lines in files