optimized remains detection