corrected legend and axis