calculating system size