fixxed front fig still get 7 errors but we get an output pdf