legend shows when applicable