mitigating memory issues