smarter zero-padding.