minor changes to rb.pas