FIX: vectorized integration