added checks to shared boxes