instantiated CGA with pattern target function