Stream Profile

We are starting to use Stream profiles what we need now is how do I switch from one stream profile to another in a iRule. Below is the iRule I am testing out. It throws out the following error

line 3: [undefined procedure: stream] [stream test ]

when HTTP_REQUEST {

if { [matchclass [IP::remote_addr] equals $::RIchards_IP] } {

stream test }

}

Found the answer to my question need to upgrade to 9.2.