adding capability to pass added ids to the custom target function