updated figures with the right C code