typo and size-check