update r and b - 2