auto remove fail lines