changed legend->label and made ordering of modules consistent