handle intrinsic functions