added pcg scheme and testing