changed location of legend in plot