added remove key in legend