optimized deadend code