reorganize some intrinsics