fixed box for legends