fixed #2. added check data about size.