twisted integration