added restriction to size