size and validation