removed clear function from rb_query