draft of legend box