added setCompact