debuging gregory patch initialization, not working yet