better size-guessing