added legend on plots