changed boxSize to actual number