updated RAM collection method