updated api reference in example