auto-wrapper & gap-count