reset function added in rb_lib