subprocessing calling for mem management