added select intrinsic, removed threshold intrinsic