adding variable names to legend