updated r and b