removed unnecessary concantenation in legend method