and built a test routine for cg. it works!