correctly calculating system box