FIX FUCKING DEK LOGIC FOR REAL