refactored number of planes, and capacity test