calculation of mod nums now work regardless of box number