add intrinsics optimization