preserving hat shape