modified to use rc setting