corrected figure.c