reorder graphs and fix captions