final line detector