renders correct number of black boxes