Makethe legend

made some changes before making the legend