added opaque class to legend