modified cgSettings to leverage the new class function