cleaning up - adding legend