added legends and all