detection of active boxes works now