add cgClass snippet