api modified for dg