FIX: rewrite fast_dot insertion