check for sizes in modes 2 and 3, but gets segfault when computing statistics