edit cgClass API