number of bugfixes for variable sizes