outputing to figures correctly