fixed rthree problem