update right rect