add some C code test commnets. different behavior with matlab script