Improved legend