minor changes for legends